<br /><br /><br /><br /><br />
<div class="col-xs-12">
	<ul class="list-unstyled">
	<?php 
	if(isset($error)){ ?>
		<br />
		<p class="alert alert-danger text-center" role="alert"><?php echo $error ?></p>
	<?php }
	else{
		foreach ($result as $value) { ?>
			<li>
				<p class="text-muted">Question:</p>
				<p><?php echo $value['title'] ?></p>
				<p><?php echo $value['content'] ?></p>
				<p><span class="text-muted">Answer</span>:<strong class="text-danger">
					<?php
					if($value['type'] == '判断'){
						if($value['answer'] == 'O'){
							echo '✔';
						}
						elseif ($value['answer'] == 'X') {
							echo '✗';
						}
					}
					else{
						echo $value['answer'];
					}
					?>
				</strong></p> 
				<p><span class="text-muted">Type</span>:<?php echo $value['type'] ?></p>
			</li>
			<br /><br />
	<?php }} ?>
	</ul>
<div>